<pre class="docs-method-signature"><code>g.snapToGrid(val, gridSize)</code></pre>
<p>Snap the value <code>val</code> to a grid of size <code>gridSize</code>.</p>
